#include "server.h"
#include "../list/list.h"
#include "../list/charlist.h"
#include <stdio.h>
int main(int argc, char **argv)
{
  Server server;
  List lFolder;
  initialize_List(&lFolder, create_CharList, destroy_CharList, NULL, NULL);
  insertLast_List(&lFolder, "/home/zephyrin/tmp");
  prepare_Server(&server, 2, "8080", &lFolder, 3);
  start_Server(&server);
  printf("server start\n");
  getchar();
  close_Server(&server);
  printf("server close\n");
  getchar();
  start_Server(&server);
  printf("server restart\n");
  getchar();
  
  close_Server(&server);
  destroy_Server(&server);
  testament_List(&lFolder);
  printf("Fin\n");
  getchar();
  return 0;
}
